<?php
		require("../dbconnect.php");
		require("../function.php");

		$prodid=$_GET["prodid"];
		
		
		$getProd=mysql_query("select * from os_product_inventory where pid='$prodid'");
		
		
		$content= "
			<select name='stock' class=text>
				<option value=''>please select</option>
			";
			if(mysql_num_rows($getProd)>0)
			{
				while($p=mysql_fetch_array($getProd,MYSQL_ASSOC))
				{
					$content.="<option value='".$p['id']."'>".$p['description']."(RM ".$p['unit_price']." Available : ".$p['quantity'].")</option>";
				}
			
				$content.="</select>";
			}
		echo iconv('GBK', 'utf-8', $content);
		
?>